package cn.com.ustudy.course.core.model.entity;

import cn.melonlib.cores.commons.model.entity.TenantRecordEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "CourseTeamTeacher")
@Table(name = "crs_course_team_teacher")
@ModelComment("教学参与老师")
public class CourseTeamTeacher extends TenantRecordEntity {

    @ManyToOne(cascade = CascadeType.REFRESH,fetch = FetchType.LAZY)
    @JoinColumn(name = "course_team_id")
    @ModelComment("所属教学团队")
    private CourseTeam courseTeam;

    @ModelComment("参与教学老师")
    private String teacher;
}
